$(document).ready(function(){
 $("#search").keyup(function(e){
   if(e.keyCode == 40) { //down arrow
     $("#stocks").focus();
   }
   //if(e.keyCode == 38) { //up arrow
   $("#search_form").submit();
   });
 });
